package com.project.service.impl;

import com.project.bean.UserBean;
import com.project.dao.IUserDao;
import com.project.dao.impl.UserDaoImpl;
import com.project.service.IUserService;

import java.util.List;

public class UserServiceImpl implements IUserService {

          IUserDao iUserDao=new UserDaoImpl();
    @Override
    public UserBean login(String username, String pwd) {
        return iUserDao.login(username,pwd);
    }

    @Override
    public void add(UserBean userBean) {
            iUserDao.add(userBean);
    }

    @Override
    public List<UserBean> findAll() {
        return iUserDao.findAll();
    }
}
